import App from './App.vue';
import router from './router';
import { createApp } from 'vue';
import { createPinia } from 'pinia';
import 'element-plus/dist/index.css';
import ElementPlus from 'element-plus';
import Terminal from 'vue-web-terminal';
import { createTerminal } from 'vue-web-terminal';

const pinia = createPinia();
const app = createApp(App);

app.use(pinia).use(router).use(createTerminal()).use(ElementPlus).mount('#app');

// 注册 Terminal 组件
app.component('Terminal', Terminal);
